<%@ page import="union.PerfilCompetencia"%>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'perfilCompetencia.label', default: 'Perfil da Competência')}" />
<title><g:message code="default.create.label"
		args="[entityName]" /></title>
</head>
<body>
	<div class="nav" role="navigation">
		<ul class="nav nav-pills">
			<g:permissao devePossuir="true" controles="perfilCompetencia" acoes="list">
				<li><g:link class="list" action="list">
						<i class="icon-list-alt"></i>
						<g:message code="default.list.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
			<li class="divider-vertical"></li>
			<g:permissao devePossuir="true" controles="perfilCompetencia" acoes="create">
				<li><g:link action="create">
						<i class="icon-file"></i>
						<g:message code="default.add.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
		</ul>
	</div>
	<div id="create-perfilCompetencia" class="content scaffold-create" role="main">
		<legend>
			<g:message code="default.create.label" args="[entityName]" />
		</legend>
		<mensagem:renderizar mensagem="${flash}" />
		<g:hasErrors bean="${perfilCompetenciaInstance}">
			<div class="alert alert-error">
				<ul class="errors">
					<g:eachError bean="${perfilCompetenciaInstance}" var="error">
						<li
							<g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>>
							<g:message error="${error}" />
						</li>
					</g:eachError>
				</ul>
			</div>
		</g:hasErrors>
		<g:form action="save">
			<fieldset class="form">
				<g:render template="form" />
			</fieldset>
			<fieldset class="buttons">
				<button type="submit" name="create" class="btn" value="${message(code: 'default.button.create.label', default: 'Create')}">
					<i class="icon-ok"></i> Criar
				</button>
			</fieldset>
		</g:form>
		<g:information/>
	</div>
</body>
</html>
